package com.yonyou.brigade.third_parties.third.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiangzhf@yonyou.com
 * @since 2018-08-16
 */
@TableName("bri_dept_authorization")
public class BriDeptAuthorization extends Model<BriDeptAuthorization> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 组织编码
     */
    @TableField("org_pk")
    private String orgPk;
    /**
     * 部门编码
     */
    @TableField("dept_pk")
    private String deptPk;
    /**
     * 部门名称
     */
    @TableField("dept_name")
    private String deptName;
    /**
     * 二次授权人ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 二次授权人姓名
     */
    @TableField("user_name")
    private String userName;
    /**
     * 二次授权人邮箱
     */
    private String email;
    /**
     * 租户id
     */
    private String tenant;
    /**
     * 携程是否可用
     */
    @TableField("ctrip_enable")
    private Integer ctripEnable;
    /**
     * 中兴是否可用
     */
    @TableField("zteitc_enable")
    private Integer zteitcEnable;
    private Date ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrgPk() {
        return orgPk;
    }

    public void setOrgPk(String orgPk) {
        this.orgPk = orgPk;
    }

    public String getDeptPk() {
        return deptPk;
    }

    public void setDeptPk(String deptPk) {
        this.deptPk = deptPk;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public Integer getCtripEnable() {
        return ctripEnable;
    }

    public void setCtripEnable(Integer ctripEnable) {
        this.ctripEnable = ctripEnable;
    }

    public Integer getZteitcEnable() {
        return zteitcEnable;
    }

    public void setZteitcEnable(Integer zteitcEnable) {
        this.zteitcEnable = zteitcEnable;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String ORG_PK = "org_pk";

    public static final String DEPT_PK = "dept_pk";

    public static final String DEPT_NAME = "dept_name";

    public static final String USER_ID = "user_id";

    public static final String USER_NAME = "user_name";

    public static final String EMAIL = "email";

    public static final String TENANT = "tenant";

    public static final String CTRIP_ENABLE = "ctrip_enable";

    public static final String ZTEITC_ENABLE = "zteitc_enable";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BriDeptAuthorization{" +
        "id=" + id +
        ", orgPk=" + orgPk +
        ", deptPk=" + deptPk +
        ", deptName=" + deptName +
        ", userId=" + userId +
        ", userName=" + userName +
        ", email=" + email +
        ", tenant=" + tenant +
        ", ctripEnable=" + ctripEnable +
        ", zteitcEnable=" + zteitcEnable +
        ", ts=" + ts +
        "}";
    }
}
